// ***********************************************************************
// Project			: Micua
// Assembly         : Micua.Model
// Author           : iceStone
// Created          : 2013-11-23 15:28
//
// Last Modified By : iceStone
// Last Modified On : 2014-01-04 20:39
// ***********************************************************************
// <copyright file="Post.cs" company="Wedn.Net">
//     Copyright (c) Wedn.Net. All rights reserved.
// </copyright>
// <summary>缺少注释</summary>
// ***********************************************************************

namespace Micua.Model
{
    using System;
    using System.Collections.Generic;
    
    /// <summary>
    /// 链接 实体类.
    /// </summary>
    /// <remarks>
    ///  2013-11-18 19:40 Created By iceStone
    /// </remarks>
    public partial class Link
    {
        public Link()
        {
            this.Text = string.Empty;
            this.Image = string.Empty;
            this.Url = string.Empty;
            this.Title = string.Empty;
            this.Target = "_blank";
            this.Rel = string.Empty;
            this.Type = 0;
            this.Visible = true;
            this.Order = 50;
            this.ChildLinks = new HashSet<Link>();
        }
    
        /// <summary>
        /// 设置或读取链接ID。
        /// </summary>
        /// <value>链接ID.</value>
        public int Id { get; set; }
        /// <summary>
        /// 设置或读取链接文字。
        /// </summary>
        /// <value>链接文字.</value>
        public string Text { get; set; }
        /// <summary>
        /// 设置或读取图标。
        /// </summary>
        /// <value>图标.</value>
        public string Image { get; set; }
        /// <summary>
        /// 设置或读取链接地址。
        /// </summary>
        /// <value>链接地址.</value>
        public string Url { get; set; }
        /// <summary>
        /// 设置或读取链接标题。
        /// </summary>
        /// <value>链接标题.</value>
        public string Title { get; set; }
        /// <summary>
        /// 设置或读取链接目标窗口。
        /// </summary>
        /// <value>链接目标窗口.</value>
        public string Target { get; set; }
        /// <summary>
        /// 设置或读取链接关系。
        /// </summary>
        /// <value>链接关系.</value>
        public string Rel { get; set; }
        /// <summary>
        /// 设置或读取链接类型。
        /// 0:友情链接;1:导航菜单;2:脚注链接
        /// </summary>
        /// <value>链接类型.</value>
        public byte Type { get; set; }
        /// <summary>
        /// 设置或读取是否可见。
        /// </summary>
        /// <value>是否可见.</value>
        public bool Visible { get; set; }
        /// <summary>
        /// 设置或读取排序。
        ///  越大越靠前
        /// </summary>
        /// <value>排序.</value>
        public short Order { get; set; }
        /// <summary>
        /// 设置或读取父链接ID。
        /// </summary>
        /// <value>父链接ID.</value>
        public Nullable<int> ParentId { get; set; }
    
        /// <summary>
        /// 设置或读取子链接ID。
        /// </summary>
        /// <value>子链接ID.</value>
        public virtual ICollection<Link> ChildLinks { get; set; }
        /// <summary>
        /// 设置或读取父链接ID。
        /// </summary>
        /// <value>父链接ID.</value>
        public virtual Link ParentLink { get; set; }
    }
}
